package com.tm.portal.pojo;

import java.util.Date;

import com.tm.portal.dao.Dao;
import com.tm.portal.dao.DaoFactory;

public class BizPojo extends BasePojo
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5293263489230595365L;
	
	private Date createTime;
	private Date updateTime;
	
	public void update()
	{
		getDao().save(this);
	}
	
	public void delete()
	{
		getDao().delete(this);
	}
	
	public Dao getDao()
	{
		return DaoFactory.getInstance().getDao();
	}
	
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
}
